<?php
// +----------------------------------------------------------------------
// | KITEGO-Admin「开箱即用」「人人全栈」
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2024 https://www.kitego.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed KITEGO并不是自由软件，未经许可不能去掉KITEGO相关版权
// +----------------------------------------------------------------------
// | Author: KITEGO Team <bd@kitego.cn>
// +----------------------------------------------------------------------

return [
    'paths'                    => ['*'], // 'api/*'
    'allowed_origins'          => env('app_debug') ? ['http://localhost:8080', 'http://web.kitegoadmin.local'] : ['*'], // 开发环境下可用于兼容amis编辑器的api请求
    'allowed_origins_patterns' => [],
    'allowed_methods'          => ['GET', 'POST'],
    'allowed_headers'          => ['*'],
    'exposed_headers'          => [],
    'max_age'                  => 0,
    'supports_credentials'     => (bool)env('app_debug') // 开发环境下可用于兼容amis编辑器的api请求
];